<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>dppsu: xdppsu_intr.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">dppsu
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xdppsu__intr_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xdppsu_intr.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains functions related to <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> interrupt handling. </p>
<dl class="section note"><dt>Note</dt><dd>None.</dd></dl>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date     Changes
</p>
<hr/>
<p>
1.0   aad  01/17/17 Initial release.
</pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a1c4b527b0d2029a84a19d8e419a071bc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__intr_8c.html#a1c4b527b0d2029a84a19d8e419a071bc">XDpPsu_SetHpdEventHandler</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr, <a class="el" href="xdppsu_8h.html#a13e177802b0d46ab226b56650ce50fc0">XDpPsu_HpdEventHandler</a> CallbackFunc, void *CallbackRef)</td></tr>
<tr class="memdesc:a1c4b527b0d2029a84a19d8e419a071bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function installs a callback function for when a hot-plug-detect event interrupt occurs.  <a href="#a1c4b527b0d2029a84a19d8e419a071bc">More...</a><br/></td></tr>
<tr class="separator:a1c4b527b0d2029a84a19d8e419a071bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a566d5385a4745191d09f43440125d927"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__intr_8c.html#a566d5385a4745191d09f43440125d927">XDpPsu_SetHpdPulseHandler</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr, <a class="el" href="xdppsu_8h.html#a1b28e87125be77708843cd7941024b60">XDpPsu_HpdPulseHandler</a> CallbackFunc, void *CallbackRef)</td></tr>
<tr class="memdesc:a566d5385a4745191d09f43440125d927"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function installs a callback function for when a hot-plug-detect pulse interrupt occurs.  <a href="#a566d5385a4745191d09f43440125d927">More...</a><br/></td></tr>
<tr class="separator:a566d5385a4745191d09f43440125d927"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a940393f7b33c36e51ea69d4561630222"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__intr_8c.html#a940393f7b33c36e51ea69d4561630222">XDpPsu_HpdInterruptHandler</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:a940393f7b33c36e51ea69d4561630222"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is the interrupt handler for the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> driver.  <a href="#a940393f7b33c36e51ea69d4561630222">More...</a><br/></td></tr>
<tr class="separator:a940393f7b33c36e51ea69d4561630222"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a940393f7b33c36e51ea69d4561630222"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_HpdInterruptHandler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is the interrupt handler for the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> driver. </p>
<p>When an interrupt happens, it first detects what kind of interrupt happened, then decides which callback function to invoke.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu___config.html#a59991a74d33038e382665a3460a669ee">XDpPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_dp_psu.html#a95a9619caa3d18b50a4562de54d57704">XDpPsu::Config</a>, <a class="el" href="struct_x_dp_psu.html#a347b8b6e4f1e7b56f154007cf8039e81">XDpPsu::HpdEventCallbackRef</a>, <a class="el" href="struct_x_dp_psu.html#a5260646a635dae6b11a8670785574c66">XDpPsu::HpdEventHandler</a>, <a class="el" href="struct_x_dp_psu.html#aed4c24dc998c531cec4674be4d6db3aa">XDpPsu::HpdPulseCallbackRef</a>, <a class="el" href="struct_x_dp_psu.html#a128ad832eab2325c3df835f0452b5208">XDpPsu::HpdPulseHandler</a>, <a class="el" href="xdppsu__hw_8h.html#a728bb80efc84e6cb161e3f04103bf6ed">XDPPSU_HPD_DURATION</a>, <a class="el" href="xdppsu__hw_8h.html#a3c97c07d18d9c5a39382fb8f8f7518b6">XDPPSU_INTR_HPD_EVENT_MASK</a>, <a class="el" href="xdppsu__hw_8h.html#a63c73ef7b94ee2b16928d5423226e636">XDPPSU_INTR_HPD_PULSE_DETECTED_MASK</a>, <a class="el" href="xdppsu__hw_8h.html#a66cf1bc6e98aa546ba11f8a8091b1f8e">XDPPSU_INTR_STATUS</a>, <a class="el" href="xdppsu_8c.html#aee45a79c993e3bcad636dddf3121aeab">XDpPsu_IsConnected()</a>, <a class="el" href="xdppsu__hw_8h.html#a236d6b24b5cf2e0e8ac65a4079ae93bc">XDpPsu_ReadReg</a>, and <a class="el" href="xdppsu__hw_8h.html#a823328e4a95aa3ba27553603940a7ba8">XDpPsu_WriteReg</a>.</p>

</div>
</div>
<a class="anchor" id="a1c4b527b0d2029a84a19d8e419a071bc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_SetHpdEventHandler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xdppsu_8h.html#a13e177802b0d46ab226b56650ce50fc0">XDpPsu_HpdEventHandler</a>&#160;</td>
          <td class="paramname"><em>CallbackFunc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>CallbackRef</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function installs a callback function for when a hot-plug-detect event interrupt occurs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance. </td></tr>
    <tr><td class="paramname">CallbackFunc</td><td>is the address to the callback function. </td></tr>
    <tr><td class="paramname">CallbackRef</td><td>is the user data item that will be passed to the callback function when it is invoked.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu.html#a347b8b6e4f1e7b56f154007cf8039e81">XDpPsu::HpdEventCallbackRef</a>, and <a class="el" href="struct_x_dp_psu.html#a5260646a635dae6b11a8670785574c66">XDpPsu::HpdEventHandler</a>.</p>

</div>
</div>
<a class="anchor" id="a566d5385a4745191d09f43440125d927"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_SetHpdPulseHandler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xdppsu_8h.html#a1b28e87125be77708843cd7941024b60">XDpPsu_HpdPulseHandler</a>&#160;</td>
          <td class="paramname"><em>CallbackFunc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>CallbackRef</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function installs a callback function for when a hot-plug-detect pulse interrupt occurs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance. </td></tr>
    <tr><td class="paramname">CallbackFunc</td><td>is the address to the callback function. </td></tr>
    <tr><td class="paramname">CallbackRef</td><td>is the user data item that will be passed to the callback function when it is invoked.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu.html#aed4c24dc998c531cec4674be4d6db3aa">XDpPsu::HpdPulseCallbackRef</a>, and <a class="el" href="struct_x_dp_psu.html#a128ad832eab2325c3df835f0452b5208">XDpPsu::HpdPulseHandler</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
